<div class="modal-body">
	<form role="form" action="{$strUrl}" method="post" class="form-horizontal" name="editWorkForm" id="editWorkForm">
          	<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}">
			<input type="hidden" name="objId"  value="{$objId}">
			<input type="hidden" name="pk[service_id]"  value="{$arrServiceInfo['service_id']}">

            <div class="form-group">
              <label class="col-sm-2 control-label" for="goodsname">{$strServiceName}名称：</label>
                <div class="col-sm-8 row">
                  <input type="text"  name="goodsname" id="goodsname"  class="form-control" value="{$arrServiceInfo['title']}">
                </div>
            </div>

		    <div class="form-group">
              <label class="col-sm-2 control-label" for="goodsdesc">{$strServiceName}描述：</label>
              <div class="col-sm-8 row">
                 <textarea id="goodsdesc" name="goodsdesc" rows="10" class=" ">{$arrServiceInfo['content']}</textarea>
              </div>
            </div>


           <div class="form-group">
              <label class="col-sm-2 control-label">所属行业：</label>
                   <div class="col-sm-4">
                   <select class="form-control" name="indus_pid" id="indus_pid" onchange="getIndustry(this.value,'indus_id')">
                     <option value="-1">请选择父行业</option>
                     {loop $arrTopIndustrys $v}
                     	<option value="{$v['indus_id']}" {if $arrTaskInfo['indus_pid'] ==$v['indus_id']||$arrServiceInfo['indus_pid'] ==$v['indus_id']} selected="selected"{/if}>
                     	{$v['indus_name']}
                     	</option>
                     {/loop}
                   </select>
                 </div>
                 <div class="col-sm-4">
                   <select class="form-control" name="indus_id" id="indus_id">
                     <option value="-1">请选择子行业</option>
                     {if $arrTaskInfo['indus_id']||$arrServiceInfo['indus_id']}
                      {loop $arrAllIndustrys $v}
							<option value="{$v['indus_id']}" {if $arrTaskInfo['indus_id'] == $v['indus_id']||$arrServiceInfo['indus_id'] ==$v['indus_id']} selected="selected"{/if}>
							{$v['indus_name']}
							</option>
                      {/loop}
                     {/if}
                   </select>
                 </div>
                 <div class="col-sm-offset-2 col-sm-8">
                   <span class="help-block"></span>
                 </div>
           </div>
            <div class="form-group">
              <label class="col-sm-2 control-label" for="upload">上传图片：</label>
                <div class="col-sm-8">
                	  <input type="file" id="upload" name="upload">
					  <p class="form-control-static">最多5个附件，每个附件不得超过{$basic_config['max_size']}M。</p>
				  <input type="hidden"  name="fileid"  id="fileid">
	              <input type="hidden"  name="file_ids" id="file_ids"  class="form-control" value="{$arrServiceInfo['pic']}">
					 <!-- <img id="imagePreview" src="{$arrServiceInfo['pic']}" {if !$arrServiceInfo['pic']}class="hidden"{/if} width="100px;" height="100px;">
-->

                </div>
                
            <script src="static/js/uploadify/jquery.uploadify.min.js?r={RANDOM_PARA}" type="text/javascript"></script>
						<link href="static/js/uploadify/uploadify.css" rel="stylesheet">
						<script type="text/javascript">
                                $(function(){
                                	setTimeout(function(){
                                    uploadify({
                                    	debug:false,
                                    	text:'上传图片',
                                    	auto:true,
                                    	hide:false,
                                    	resText:'file_ids',
                                    	exts:'{$strExtTypes}',
                                    	size:"{$basic_config['max_size']}MB",
                                    	limit:5,
										 file: 'upload'
                                    	},{
                                          fileType:'service',
										  sessionId:sessionId
                                    	},responseImg);
                                },500);
                                });
									function responseImg(json){
					            	if($("#file_ids").val()){
										$("#file_ids").val($("#file_ids").val()+','+json.msg.url);
									}else{
										$("#file_ids").val(json.msg.url);
									}
									//$("#fileList_upload").append('<li class="affix-list-item">'+json.msg.name+'</li>');
								}
                        </script>
            </div>
			<div class="form-group ">
            <div class="col-sm-offset-2 col-sm-6">
              <ul class="affix-list" id="fileList_upload">
				{if !empty($arrImageLists)}
	              {loop $arrImageLists $v}
	              	<li class="affix-list-item" delete-image-id="{$v['file_id']}">{$v['file_name']}
	              	<a href="javascript:void(0);" delete-image-id="{$v['file_id']}" data-class="delete-image">删除</a></li>
	              {/loop}
              {/if}
              </ul>
            </div>
          </div>
          <!--
            <div class="form-group">
              <label class="col-sm-2 control-label" for="goodsprice">出售价格：</label>
              <div class="col-sm-8 row">
                <input type="text"  name="goodsprice" id="goodsprice"  class="form-control" value="{$arrServiceInfo['price']}">
              </div>
            </div>

            -->

            <div class="form-group">
            <label for="goodsprice" class="col-sm-2 control-label">出售价格 ：</label>
            <div class="col-sm-4">
              <div class="input-group">
                <span class="input-group-addon">￥</span>
                <input type="text" class="form-control" id="goodsprice" name="goodsprice" placeholder="出售价格" value="{$arrServiceInfo['price']}">
              </div>
		        </div>
            <div class="col-sm-4">
				    <select name="unite_price" id="unite_price" class="form-control">
                    {loop $arrPriceUnit $v}<option value="{$v}" {if $arrServiceInfo['unite_price']==$v}selected{/if}>/{$v} </option>
                    {/loop}
                </select>
            </div>
       		</div>
{if $arrServiceInfo['model_id'] == '7'}

<!--
<div class="form-group">
            <label for="service_time" class="col-sm-2 control-label">完成时间 ：</label>
            <div class="col-sm-3">
               <input type="text" class="form-control" id="service_time" name="service_time" placeholder="承诺完成时间" value="{$arrServiceInfo['service_time']}">
            </div>
			<div class="col-sm-3">
				<select name="unit_time" id="unit_time" class="form-control">
						{loop $arrServiceUnit $v}
							<option value="{$v}" {if $arrServiceInfo[unite_price]==$v}selected{/if}>{$v}</option>
						{/loop}
           		</select>
            </div>

       </div>
     <div class="form-group">
            <label for="txt_exist_day" class="col-sm-2 control-label">有效期 ：</label>
            <div class="col-sm-6">
              <div class="input-group date form_date ">
     		          <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
     		          <input id="txt_exist_day" name="txt_exist_day" class="form-control form_datetime" size="16" type="datetime" value="{$strDate}" placeholder="有效期"  data-date-format="yyyy-mm-dd">
     		        </div>
            </div>

       </div> -->

{else}
            <div class="form-group">
            <label for="submit_method" class="col-sm-2 control-label">交付方式 ：</label>
            <div class="col-sm-8 row">
              <input class="border_n" type="radio" id="pay_out" name="submit_method" value="outside" {if $arrServiceInfo['submit_method']=='outside' ||!$arrServiceInfo['submit_method']}checked{/if}>
                <label for="pay_out">
                    联系客服
                </label>
                <input class="border_n" type="radio" id="pay_down" name="submit_method" value="inside" {if $arrServiceInfo['submit_method']=='inside'}checked{/if}>
                <label for="pay_down">
                    直接下载
                </label>
            </div>

       </div>
       <div class="form-group" id="submit_method">
            <label for="upload" class="col-sm-2 control-label">{$strServiceName}源件：</label>
            <div class="col-sm-3">
              <p class="form-control-static">
	              <input type="file" id="file_upload_i" name="file_upload_i">
	              <input type="hidden"  name="file_path_2" id="file_path_2"  class="form-control" value="{$arrServiceInfo['file_path']}">
              </p>
            </div>
            <div class="col-sm-4">
              <p class="form-control-static">最多1个附件，不得超过{$basic_config['max_size']}M。</p>
			   <span class="btn red hidden" id="uploadShopFile">请上传{$strServiceName}源件</span>
            </div>

						<script type="text/javascript">
                                $(function(){
                                	setTimeout(function(){
                                    uploadify({
                                    	debug:false,
                                    	text:'上传附件',
                                    	auto:true,
                                    	hide:false,
                                    	resText:'file_path_2',
                                    	size:"{$basic_config['max_size']}MB",
                                    	limit:1,
										 file: 'file_upload_i',
                                    	},{

                                    	},responseFile);
                                },500);
                                });
							function responseFile(json){
									$("#file_path_2").val(json.msg.url);
									$("#fileList_file_path_2").append('<li class="affix-list-item">'+json.msg.name+'</li>');
								}
                        </script>

          </div>
          <!-- 上传附件 end -->

          <div class="form-group ">
            <div class="col-sm-offset-2 col-sm-6">
              <ul class="affix-list" id="fileList_file_path_2">
				{if !empty($arrFileLists)}
	              {loop $arrFileLists $v}
	              	<li class="affix-list-item" delete-goodsfile-id="{$v['file_id']}">{$v['file_name']}
	              	<a href="javascript:void(0);" delete-goodsfile-id="{$v['file_id']}" data-class="delete-goodsfile">删除</a></li>
	              {/loop}
              {/if}
              </ul>
            </div>
          </div>


{/if}
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button class="btn btn-default" type="submit" value="1" onclick="return isNextChecked();" >确定</button>
                <span class="text-success" id="tipsUser"></span>
              </div>
            </div>
          </form>
          </div>
          <script src="static/js/model/user/editwork.js"></script>
          <script type="text/javascript">
			<!--
			var strUrl = "{$strUrl}";
			var splitStr = ",";
			window.UEDITOR_HOME_URL = "{$basic_config['website_url']}/static/js/ueditor/"; 
			//-->
		  </script>
		  <script type="text/javascript" src="static/js/ueditor/ueditor.config.js"></script>
			<!-- 编辑器源码文件 -->
			<script type="text/javascript" src="static/js/ueditor/ueditor.all.min.js"></script>
			<script type="text/javascript" src="static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
			<!-- 实例化编辑器 -->
			<script type="text/javascript">
				var ue = UE.getEditor('goodsdesc', {
					//这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
					initialFrameWidth : '100%',
					initialFrameHeight : '200'
				});
			</script>


